package com.app.stick.bind.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;

/**
 * 患者和设备绑定信息对象 biz_patient_device_info
 *
 * @author app
 * @date 2023-12-18
 */
@Data
@TableName(value = "biz_patient_device_info" )
@ApiModel(value = "BizPatientDeviceInfo" , description = "患者和设备绑定信息对象" )
public class BizPatientDeviceInfo extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 绑定ID */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "绑定ID")
    private String pdiId;

    /** 就诊ID */
    @Excel(name = "就诊ID")
    @ApiModelProperty(value = "就诊ID")
    private String visitId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @ApiModelProperty(value = "设备编号")
    private String deviceCode;

    /** 已佩戴连续时长(秒) */
    @Excel(name = "已佩戴连续时长(秒)")
    @ApiModelProperty(value = "已佩戴连续时长(秒)")
    private Long pdiCurDuration;

    /** 当前电量 */
    @Excel(name = "当前电量")
    @ApiModelProperty(value = "当前电量")
    private Integer pdiCurElectricity;

    /** 当前温度 */
    @Excel(name = "当前温度")
    @ApiModelProperty(value = "当前温度")
    private Double pdiCurTemperature;

    /** 已佩戴累计时长(秒) */
    @Excel(name = "已佩戴累计时长(秒)")
    @ApiModelProperty(value = "已佩戴累计时长(秒)")
    private Long pdiAccDuration;

    /** 绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "绑定时间")
    private Date pdiBindTime;

    /** 解绑时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "解绑时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "解绑时间")
    private Date pdiUnbindTime;

    /** 绑定状态(1=已绑定,2=解除绑定) */
    @Excel(name = "绑定状态(1=已绑定,2=解除绑定)")
    @ApiModelProperty(value = "绑定状态(1=已绑定,2=解除绑定)")
    private String pdiBindStatus;

    /** 删除标志（0=正常,2=删除） */
    @ApiModelProperty(value = "删除标志（0=正常,2=删除）")
    private String delFlag;


}
